---
id: debugging
title: Debugging - PHP SDK
sidebar_label: Debugging
description: Learn how to effectively debug your Workflow in both development and production environments using Web UI, Temporal CLI, and performance metrics for optimal Worker and Server performance.
toc_max_heading_level: 4
keywords:
  - guide-context
tags:
  - Debugging
  - Errors
  - PHP SDK
  - Temporal SDKs
---

## Debugging {#debug}

### How to debug in a development environment {#debug-in-a-development-environment}

In addition to the normal development tools of logging and a debugger, you can also see what's happening in your Workflow by using the [Web UI](/web-ui) or [Temporal CLI](/cli).

### How to debug in a development production {#debug-in-a-development-production}

You can debug production Workflows using:

- [Web UI](/web-ui)
- [Temporal CLI](/cli)

You can debug and tune Worker performance with metrics and the [Worker performance guide](/develop/worker-performance).

Debug Server performance with [Cloud metrics](/cloud/metrics/) or [self-hosted Server metrics](/self-hosted-guide/production-checklist#scaling-and-metrics).
